Fix number field type and constructors

The NumberField type exported methods that operated on Strings instead
of Numbers, and the numberField class provided methods that returned
Inputs instead of NumberFields. The primary number field constructor
also had a clash between its label parameter and the corresponding
field.