[tools.vtkio] use flatten_grid and let user specify data codim