(#22363) Add capability to match against Type

Using the match operator with a Type RHS performs a puppet
instance? test