Writer supports writing multiple root objects. Closes #2.