Improve `in` validator to properly support array attributes.