Fix input type inference when type=>checkbox

FormHelper should not infer types when the explicit type is checkbox.
Instead the provided type should be used.

Fixes #2491