Use #to_key for storing objects in Arrthorizer::Registry