Add failing assertion in structure loading
Move all hdf5 details into util