Fixing a bug in buildChildren of the CategoriesType

buildChildren is called for each child fo the CategoriesType node. There may be several 'Category' nodes as children. 'set_Category' therefore is wrong: it will not only overwrite categories, but also leads to a type error in line 2506, since there a list rather than a single element is expected.