Parent attribute in constraints and path calculation

Set parent in attributes of CComplexObject.
It's good to have all constraint tree back-linked.

Always set @path doesn't require now.
Use constaint parent to calculate path.