gtype: introduce g_type_exists()
This call is needed when we want to make sure it's safe to call other g_type functions on the parameter value.
This call is needed when we want to make sure it's safe to call other g_type functions on the parameter value.