Apply selection grouping when ignore groups is toggled. Fixes #141, fixes #136.