Add removal of duplicate links to link_outlinks() and fix equalsfunctions that llists are initialized with