Split some `PyTypeInfo` functionality into new traits `HasPyGilRef` and `PyTypeCheck`.