ec_util_choice_to_long function

Convert a vector of choices to long format