Set Oj to use `#to_json` by default.

Fixes #584.