helper_varslist function

Convert list to vector with unique elements