Added support to serialization of \DateTime parameters