Add support for array-grouped elements.

When checking element values, arrayed elements (e.g. name="element[]")
will have all of the values in the array compared to see if any of them
are valid.