Support Marshal.dump for Response/Resource objects