Support multiple types in selection widget.