Reduces code duplication.

There was previously some duplicated code for matching key values in
`Match->arr` and `Validate->arr`.