Make Document::idmap store a Vec.