Added a patch method on Object.