Set a property on a model or object.