Look for built in types first

A performance improvement.  When creating a TypeWithDict from a type name, check for built in types before checking for classes.
This is because it is *much* cheaper to check for a built in type than for a class.
Please merge this request as soon as convenient.