Fix up variable access deprecations in templates

Fixes up the variable access deprecation notices raised by Puppet 3.x