Added virtual destructor for VectorizedFunction.
Moved most of the transformation function logic out of Mesh into MeshTopology.