Support "loop" variable in FOREACH loops