Allow AttrDict to be pickled

(previously would fail out with a recursion error)