Fixed th:field not being correctly applied when <input> has no "type" attribute.
Fixed error messages not being escaped in th:errors.