Fixed bug with same ID's assigned to different items in one form.
FormField type changed to combobox or choice if the values restriction
is specified.