Give version argument of the QmlClass constructor a default value

This is the minimaly invasive change to make the unit tests work again.