fixing non/non-numeric case for hdf5 serialization