can't use configobj Sections for nesteddict (only support string keys);
write custom structure
initial fix for unittests of PR 840; now with to be expected errors