Fixed an infinite loop in newHierarchyName (wrong comparision of hierarchy name, esp. if empty string hierarchy).
Fixed hierarchy primary key (again).
More issues.
Fixed default handling. We had a misplaced break which prevented checkboxes from being saved as true/false values, and we didn't explicitly save any values which happened to be equal to the default. that's fine for optional fields but not for mandatory ones.
We just used this version to succesfully create a functional schema. That's a first!