Fix samples for changes in qml.Object

qml.Object is now an interface, this updates the samples according so
that they keep running.