Two minor bug fixes in the generated code.

* Warning messages were not hidden after a field triggered a warning and got corrected.
* "date" and other input types (e.g. date picker widget) got lost when a questionnaire got styled