make -v option support combinations of vids and ranges

Make the --variable option support comma-separated mixtures of variable IDs and ranges, e.g.:

--variable 1,2:5,6,7