(PUP-659) Fix failing acceptance tests

With this change, some acceptance tests were failing since they
still relied on Puppet searching the local namespace. The tests
have been updated so that they no longer rely on this functionality
since it's no longer supported.
Reapply (PUP-659) Optimize qualified variables

This reverts commit 17caf5e8dd97e34f7633f99ebc627662459d2756.

Since we've determined that the issue around the pull request
this commit was reverting was out of date acceptance tests,
undo the revert and reapply the changes.
Merge pull request #3414 from hkenney/issue/master/PUP-659_optimize-qualified-variables

Reapply (PUP-659) Optimize qualified variables