Fixes #1955: Some validators used to cause warnings or errors in case non-scalar array typed values being checked.

Fixes #1955: Some validators used to cause warnings or errors in case non-scalar array typed values being checked.