compute: add in-place comby replacement function
Created by: rvantonder
Stacked on https://github.com/sourcegraph/sourcegraph/pull/26697.
Adds Replacements(...)
function analogous to Matches(...)
. Basically all the work up till the previous work was done to add Replacements(...)
cleanly.