Read HDF5 enumeration datatype as integer