Add trivial write-support for trees.