Fix a small bug in the implementation of lastToken

It wasn't resetting the lastToken state after adding getter/settter.
Previous PR (26) closed because trees had diverged too much to merge.