Rename state to transition, drop typedeffing.

Rename state variable to transition as an attempt to make it more clear.
This requires using "struct transition" as the type.