Fix HDF5 routines for 32bit.
Fix unittest for 32 bit.