Accept array-like objects in required validator.