HDF5: Better print of scalars