[fix #10] correctly serialize bulk documents.

Using `Map`s is not the best way to handle a document we know exactly the
structure of.

closes #10