Fixes #3581: Added `yii\validators\CompareValidator::type` to support type conversion before comparing values