Fixed infinite loops caused by entering reparse points. Fixes issue 11.