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

I wrote PEP 737 – Unify type name formatting for these changes: see the PEP discussion.