Validate input type in choices field

This just sets a default input type (dropdown) if there is no input
type (or an invalid one) set for the choices field type.

Addresses #2721.