fix packing of date objects in hashmaps

packing of objects with `new Date()` objects as values results in the value being converted to `{}`. this change converts date objects to timestamp strings