added let and const to for-loop code generation (+ test)