Invalidate offset caching upon document change

Explains the mysterious malfunctions seen (and incorrectly
blamed on Scintilla, my apologies).