Fixed issue with parent transition filtering

When no transition are found for the specific InternalState, the parent
of the state is checked for possible transitions.  The filtering of the
transition set was performed by the InternalState rather than the State
value of the parent.

Fixes #13