Addresses new behavior of object.to_mesh().
The mesh_tissue addon needs more attention, this is unclear how
exactly meshes are used there, and, possibly, it was not working
correct before in terms it was never removing temporary meshes.
This is corresponding part for D4875.