Fix NSAttributeDescription lookups using attributesByName by switching to fast enumeration

Somehow #537 got lost in the mix. This restores those changes.