Modifications to hdf and helpers.

Make the types allow arbitary dimension data.
Merge pull request #1 from Cadair/master

Modifications to hdf and helpers.