QML_SINGLETON ownership is with the engine; returning a reference to a static variable causes a double-free