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.