add in_locale, no_locale and cast_to parameters to the number validator

refs #284