force hdf5 attributes to correct type