Small change to serialisation of timestamps and dates to enforce creation of moment objects.