Str.format for type

Also see Enhance type name formatting when raising an exception: add %T format in C, and add type.__fullyqualname__