fixed bug where user-ordered variables with 0/1 values were not converted to 1/2 integer values, triggering 'some categories of variable `xxx' are empty' error)