A utility function to set multiple attributes in a single call, in the style of mapOf. This is a wrapper around set.