Allow array sizes to be checked by validator.
Added support for where conditions on unique validation rule.