Parent attribute in constraints.

Set parent in attributes of CComplexObject.
It's good to have all constraint tree back-linked.

This and next pull request is based on my old dev branch.
Next pull request will be about calculation of path.