Adds removal of duplicates from sectionref table in repair method/upgrade script [#1115 state:resolved]