Changed widget to textline *if unit is given*, because then we must have a text. This is done after guess of str2type based on widget spec. The only difference in generated code is that float fields are gone if unit is specified.