Solves a bug in date transform (for newly created date properties)

Previously the date transform serialize method excepted a Date object only. This resulted in a null value in the payload if a new record was saved (session.flush).

With this commit it tries to create a new Date object if a string or number are passed. Thus, serialization of newly created date properties should work now.