Improved the multiple selection component.

References #703.