findRepeated gets index of repeated items/values in vector 'x' (will be treated as character).
Return (named) list of indexes for each of the repeated values, or NULL if all values are unique.
This approach is similar but more basic compared to get1stOfRepeatedByCol.