qml: use `instanceof` instead of casting object into string in FSM.qml
- Qt 6.2 requires the type to be creatable (Qt bug).
- Qt 6.7 does not require the type to be creatable.
Since FSMState
type is creatable, we can use instanceof
.
Request review @chub.