Unpack datetime values in mongo adapter.

The MongoDB adapter packs datetimes as {MegaSeconds, Seconds, MicroSeconds}, but doesn't unpack them again. This patch is intended to fix that, and should AFAICT also resolve #102.