Change InteractionMachine.switch_state() to expect metadata and creator_opts as compulsory arguments