Support type modifiers in type id name resolution.

This commit adds the ability to use type modifiers in conjunction with TypeNameIdResolver. Previously, the type name was resolved from the actual type. This change makes use of the type modifier to resolve against the modified type.

The included test patches just the one resolver, which fixed my use case. It may be the case that the other resolution strategies should also account for the presence of type modifiers. Any guidance there would be appreciated. Thanks!