See #14. Fix bug in serialization of a Date.

It was serializing as decimal in seconds (with milliseconds perdition) while it should have been an integer in milliseconds.