(PUP-2101) resource parser: add the resource name on the validation erro...

https://tickets.puppetlabs.com/browse/PUP-2101

replaces this pull request:
https://github.com/puppetlabs/puppet/pull/2489