modify index generation for local copies of position and thunkPosition (fixes an issue with scope)
Parse: on success, commit again to reset thunkPosition
parseErr: return io.EOF if parsing stopped at the beginning