ngResource: Add a $set function on Resource.prototype