Fix chunk size limits to hdf dataset size (some versions of hdf5 libraries complain and others don't