In eval, construct a pairwise mask for a matrix if that seems appropriate

If we get a 1 column matrix in eval, check if the query and target sets are
of matching size, and construct a pairwise mask for that matrix.