Regression bug. Removes range and codelist assignment if a codelist is not used.