Groovy: control flow: nested switches & for-s fix & tests
test data fix

(one more warning is generated as a result of inferred purity for String#equals)