More input validation; more test cases. We now handle length restrictions on integer/number/string and range restrictions on integer/number.
Allow "length" property on "number"-typed fields; add "integer" to the numeric-range type list for clarity.