Add functions to inspect type of GObjects