Array type validation and error messages