Fix manipulation impl for replacing a single node selection.
Custom AnnotationIndex implementation with CopyOnWrite support.

Plus: moved dm.Transaction implementation to dm.Document.