Fix loop: implement SLOOP; reset loop counter to 1 after a loop operation.