luci-base: validation.js: fix integer and float type validation