issue #130 make StateNode extend CalculationNode so StateNodes can be inputs to StateNodes