(GEP-192) Problems with reserved names and scope resolution.

This PR addresses problems found while researching [GEP-192](https://tickets.puppetlabs.com/browse/GEP-192). Please see respective commit comment for details.