Extract type name only from parametric type

See the discussion in Stripping parameter from parametric types