Remove deprecations
Fix casting dates to json

When `ActiveSupport` is required, JSON encoding works differently and
does not call `to_json` on each value in the hash. This solution is more
straight-forward and portable.

The test actually passed even without the change, but that's because
`ActiveSupport` is not required in the specs.
Version bump and changelog