Correct MongoDB Date rendering and parsing. (intermediate commit)