sc_col_elements function

Checks that the elements of a column belong to a certain set