Replacing the util method `eh.toJSON` with overridable methods on models and collections.