Make the simple document versioning actually work. I have no idea how it passed my earlier tests, maybe there was a regression.