Allow set() to handle an array of attributes