This patch is split out from D67535, updating type names (or in one case type(1.4)-style goodness) and updating type comparisons with use of isinstance. Additionally, changed a dictionary key lookup for a type mapping.
As requested by reviewers in D67535, spaces are added after commas in what are now tuples of types.