Boolean fix for #2762: CRequiredValidator no trim on boolean / Gii model...

... generator creates boolean rules instead of 'required'