Minor related bugfixes: the spinbox wasn't being updated correctly when the
list of groups was changed. Fix and bring into use an untested/unused code
path exposed by this that was evidently intended to handle this case.