Fixed regression in validation of number fields.
Merge branch 'master' into gh-pages