Correct an issue where we presumed equal number of sub grids per dimension.

Now you can properly view contours of datasets which aren't square.