fixed cosmological unit handling for GadgetHDFSnap class