implemented array to keep track of selected cols

Also started to add callback for specifying columns for links_via, but
it doesn't quite work yet. Once it's ready, the basic functionality
should carry over to a callback for specifying for col-based
conversions, too.