Subdoc

Simple support for subdocument merging.