Adds support for saving scopes in a hash