Storing the selection history complicated the selection functions, especially for situations when functions were called indirectly & multiple times. Remove the argument in favor of explicit calls to store elements in the selection history. Needed to avoid even more complexity with UV sync-select: see #131642.