Switch from TAGS to TAG broke links in posts and "Delete Unused Tags"

Wrong. We switched to tags listed by group yesterday. As a side effect unused tags are displayed at the end of their groups.