Easily set a group of properties on an object