Dates are JavaScript objects, and _pack_models returns an empty object
A String is an object
Test packing/unpacking instances of Date and String
Merge pull request #6920 from SylvainCorlay/serialize_date

Dates and Strings are JavaScript objects, and _pack_models behaves incorrectly in these cases.