Do not use deprecated ctype and dimworld in Vtk functionwriter.

Use it through the Geometry instead.