Print a Document in the one spelling the KDL test suite records: props
sorted and deduped, four spaces per depth, #true/#false/#null, an
exponent's sign always written, and a trailing newline. Cannot fail.
An empty Document prints as a single newline: "a newline after the last node" holds even when there is no last node.