Fix serialization of datetimes and dates
Fix the location of this particular no cover statement