Cloning of attr and attr-group as well, so that docs (and other things) are now properly attached.