add const qualifier to unit_map::has_unit, which was missing it