Dates are JavaScript object, and _pack_models returns an empty object

JavaScript dates were not correctly serialized in the widget machinery. @ssunkara