Fix validation for arrays of functions