move (and test) __repr__ to attrdict