Issue 285 - foreach syntax

Closes #285 

Merge with: https://github.com/jbeard4/scxml-test-framework/pull/12

Implemented illegal foreach item expressions.
Implemented iterating only on arrays, raising error otherwise