Replace AttributeList with [Attribute] in API

Internal APIs now allocate and free attribute arrays internally, cleaning
up the public API for Attribute.