Adds removal of duplicates from sectionref table in repair method/upgrade script [#1115 state:resolved]
(cherry picked from commit 4e701bf)