object: check in gjs_typecheck_object if the object has been finalized

Merged Marco Trevisan requested to merge 3v1n0/gjs:gobject-ward into master

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

Merge request reports