Set range of spinbox types in dialogsubview.

Should fix #2161.  Currently there is no validation of inputs (e.g. checking for negative values).