fixed bug in CSV file output and added support for VTK legacy unstructure_grid data type