Adds maxlength to input with "length is" validator

Using `CStringValidator::$max` would yield an input field with `maxlength` attribute, but using `$is` would not - this also blocks the maximum size of an input, so it was added there as well.