Set cpp ownership on the units instance
Fixes common and frequent crashes introduced by 6c627ea0. Otherwise the engine will try to delete it. The docs say: NOTE: A QObject singleton type instance returned from a singleton type provider is owned by the QML engine unless the object has explicit QQmlEngine::CppOwnership flag set.