compute: mint result kind comby arg
Created by: rvantonder
Stacked on https://github.com/sourcegraph/sourcegraph/pull/26695.
There are three kinds of output variants to support right now (match, replacement, diff)
. The previous code made some hard assumptions about these kinds (only match
really mattered), so need to do this in a more principled way now :-)