Implement C-style for loops in the interpreter