[4.2] Fix validator incorrect error message when using arrays

Fix for issue https://github.com/laravel/framework/issues/6357