fixed doRepeat blocks to push copied versions onto the stack

- need to copy so that when the repeat block is in a procedure
  and within the repeat that procedure is called, a separate
  repeat is pushed onto the stack and counted down