fix(input): make maxlength and minlength work with non-string values

Validity for inputs with maxlength attribute and an underlying non-string model value is always false: e.g. the length property for a numeric data type returns undefined