fixed serialization of Dates (json)