object: check in gjs_typecheck_object if the object has been finalized
There are various crashes happening on gnome-shell because of gjs trying to act on invalid (destroyed) objects, so I guess it's saner to ensure that we're calling functions on an alive pointer