fix pretty printing of state when state is null.  Add toString() for Fsm