dem_geoid: Refine datum checks and height compensation