Remove duplicates from library root

Closes #708
``set()`` nukes the ordering, if we think it matters?