fix throw notice in validators and in CHtml::encode, when value for validate and encode is array

fix throw notice in validators and in CHtml::encode, when value for validate and encode is array