Start using more of the AttrNode in the AttributeSetImpl class.

Also add some asserts.