Flatten usage of this._cursor into local vars only.
(to be squashed into previous commit after review)