Simplify how substituting values works

The original purpose of this PR was to add a test for AnyValues filters, but it got a bit out of hand fixing the existing code.
I had added a test case. I added it when I fixed it with open-Values, which then became tc-results->values. And this merge fixed the behavior in subst-tc-results, but the values->tc-results test cases covers this.