Use vtkExplicitStructuredGrid when elevation present.
Note that this increases the number of point coordinates stored and adds explicit connectivity information (9 x vtkIdType values per cell) to the output dataset size relative to vtkStructuredGrid, which is what was used before. This is the cost of allowing discontinuities at every ij-column of the dataset.