Fixed issue with resolving when cotnainment path is more than two
elements.
Was using wrong context (should have been the nemed element of the
ContainedPathElement.