Set parent of all attributes in CObject and all children in CAttribute.
If path does not set, calculate path using parent.path and current object.
Add test to check path calculation.