misc/forms: ensure setType is set on form elements