Better interface for qml.RegisterTypes.
Finish the custom type support.