Support multi value attributes

For single values return a string, for multiple values return an array