type validation adjusted

This one is related with this [issue](https://github.com/yiisoft/yii2/issues/3774) .
Yes, please change it back. I don't think we should spend more time arguing about it. I understand your intention very well. Thank you.