Avoid crash when trying to create class using nonregistered GType

Also provide meaningful error from Lua-side GObject.Object.new facade.

Related to
https://github.com/pavouk/lgi/issues/66