Moving get and set shorcuts out of global scope

This caused various issues, as it was exposed to the global scope.  Some third party was behaving badly and also polluting the global scope so they collided.