(PUP-121) Make Puppet::Resource work in transform_and_assert_classname
The type system types are transformed to 3x API Puppet::Resource
long before the functions call back to transform_and_assert_classname
and this functions also needs to handle Puppet::Resource.