Fix types for `process` and `process*`

Closes PR 14297
Fix type inference helper on AnyValues range

This bug allows a test to be written for the previous
commit. Previously, it would throw a match error.