(PUP-514) Fix issue with case when inferring a Resource type

When the type calculator was inferring a Resource type, it assigned
an upper case name to the type_name in the resulting PResource type.
It should have assigned a lower case name.