Improved number validation

https://github.com/AdvancedCustomFields/acf5-beta/issues/175
Signed-off-by: Elliot Condon <e@elliotcondon.com>