functions and types are not registered automatically in their scopes