isci: add some type safety to the state machine interface