Add datetime marhsalling support.
Make datetime tests more robust against DST/timezone changes.