Fix #100: FOR loop causing a kOS stack overflow