Make Document.idmap key to Atom.