Problem: 'inherit' action creates duplicate events

The superstate expansion code was copying events even if they were
defined in the child state.

Solution: fix the 'count' syntax to work as intended.
Merge pull request #113 from hintjens/master

Problem: 'inherit' action creates duplicate events