Fixes issue 1 and 2
inheritance problem with repository that tried to register class twice
Merge pull request #5 from cwooldridge/master

Fixes StateMachine Serialization