GType is either an integer or a pointer, so we have to use the _pointer version here to support architectures such as Morello.
These two lines were missed in 5ecd3cbe and allows the gobject/enums test to pass on CheriBSD (Morello).
Helps: #2842