Check result from type registration.

Unfortunately the QML engine doesn't offer access to the error
messages that may happen when these operations fail.
Initial support for signal connections from Go

For now signal parameters are unsupported and the provided
functions are held in memory.
s/compinst/root/ in tests