Fix RestfulItem::patch() and put()