Validators that used to cause PHP error when array value is being validated now throws an exception instead of adding error message to the validated model.

Enhances #2186.
Fixes #1955.

I didn't touched array value safe validators. E.g. `CBooleanValidator` also is not intended to be used with arrays but it does not cause any PHP errors when array value passed to its `validateAttribute()`.