Add __eq__ and __ne__ to AttrSpec