Permit array declaration of allowed attribute values

Target use case is for class attribute.
Also removes spans with no attributes.