Support Marshal.dump for Response/Resource objects

related to #9 and #17