More robust exception throwing for the ising state.
Fix inverted assertion macro.
Properly calculate the input states for transitions.
Add regression test for ising::s.