Improved the multiple selection template.

References #693.