Multi target assign in for loops + guard variable optimizations