Register type before use in QMetaObject::invoke
Cleanup code, remove warning debug output
Set KF5_DEP_VERSION to 5.3

Doesn't make sense to set them individually, since all Frameworks are
updated at the same time anyway.

Also requires a more recent KCoreAddons release

CCBUG: 341553