Explicitly define as_json, to_json, serializable_hash.

Let's see if this fixes issue in Rails where to_json calls the super's
version of the method and returns an 'object' and 'options' key as
derived from the serializer object's attributes.