Fixes parent relationship for cloned pass and techniques

traversing the render states produced unintended results as the parent relationship of the original object was followed.
Merge pull request #941 from WolfgangD/master

Fixes parent relationship for cloned passes and techniques