Support for datetime object in PMGJSONEncoder and Decoder.