Avoiding fatal errors when trying to marshal a DatTimeObject

It should be perfectly valid to try to marshal a DateTime object, this
will now return the same object as there is nothing to be marshaled
Merge pull request #3630 from cakephp/3.0-marshall-datetime

3.0 marshall datetime