I didn't check how puppet passes resource references to custom functions (whether it converts refs to strings or not). The `findresource` seems to accept strings. This conversion is present also in [getparam(), L.30](https://github.com/puppetlabs/puppetlabs-stdlib/blob/master/lib/puppet/parser/functions/getparam.rb#L30).