Updates due to changes in TextOperations api.
Merge branch 'chronicled' of github.com:substance/document into chronicled
Fix regression.