toolbox-sca-3: implemented new state machine code, seems to be working for machines with no nesting.
toolbox-sca-3: implemented new state machine code, now working for most cases, where there is limited nesting; placing sets inside sets { a b {c d} d} produces infinite loops