Just vendor in the implementation directly from Puppet

It's not glamorous, but it restores function
adding in debug for found keys, copied from dgoodlad/puppet-module-data