length validator fix for input[tel] et al.

Input values that contain all numbers (such as zip codes, phone numbers, etc) will always be invalid unless the value is converted to a string first. 

e.g. 1234.length is always undefined, and '1234'.length equals 4, which is what should be checked against minlength and maxlength.