toplev: Fix deduping in the group scheduler