Added test for for loops
Workaround for for-loops with @unchecked