FIX: issue #405 (REPEAT variable can't be made local)