Use more general h5py::dataset.shape for dims