Changegroups: extract committee_ids + fix sorting of prefixes and changes