fixup! Make Document::[un]register_named_element take Atom by reference.
Revert "fixup! Make Document::[un]register_named_element take Atom by reference."

This reverts commit 26278f9dd1ac7119e110fbccc58b5df281a5f536.