Cast state to string in StateMachine#getState
BC for PHP 5.3
Merge pull request #1 from Padam87/fix_state_string

Fix state string