Fix select1 so that it can allow multiple items with the same value to be selected simultaneously as well as one that restricts to only one item that matches.