Enforce enum value uniqueness in the proper namespace

@loganj @pyricau