Fix and re-enable DocTests

I'm quite surprised that the DocTests have been disabled since April.

@jwiegley what was the motivation to disable the tests instead of addressing the issue(s)?

Next time please ask the ledger community to help (if you have, I must have missed it).
I'm more than willing to contribute as much as I can, so feel free to also ask me personally.