Bytecode Gen - Fixed loop iterator being scoped outside the loop