throw error if any transition has an array as the value of to state