gtype: fix name and toString() on the prototype

Due to limitations of JS_InitClass, the prototype of GType objects
is exposed as an object on the global, and people might accidentally
call stuff on it. Let's not crash in that case.

https://bugzilla.gnome.org/show_bug.cgi?id=724925