differentiate between categories with multiple values (not supportet)
and withouth multiple values
now all basic types except app-references are handled pretty neatly!
+ refactoring.