scripting: Mark QObjects returned from invokables as having C++ ownership
Otherwise the script engine may delete them if they have no parent and there are no more references to them.
Otherwise the script engine may delete them if they have no parent and there are no more references to them.