Add number type in FormBuilder

Also type hint the FormBuilder class.