Modifications to hdf and helpers.

Make the types allow arbitary dimension data.