inital implementation of offset writing support

duplication does not work, apparently BSON objects in C are
immutable ;-(