Support YAML.dump for Response/Resource objects