The diff field that is filled with an array of the changes of an entity (5603d9b) failed on DateTime objects because DateTime doesn't have a toString method by default.
Added code that flattens the diff array to a simple array using a configurable date format for DateTime objects.