Fix variables access

Thios fixes deprecation warnings in puppet-catalog-test