Fix manage tags function to keep from accumulating list of tags to add [#1117 state:resolved]
(cherry picked from commit 63ef2b4)
Adds sectionref repair method and upgrade script [#1115 state:resolved]
(cherry picked from commit a5eb9db)