Use the correct type during condition compilation of array_vals_at