Fix unobserving on end key

Pull request to merge in #266 without changes to `dist/*`.

Related #266, 288.