Fix for contained_in under builder
 - Must point to final parent item
 - Use of contained_in in with block of builder (where final parent is unknown) is detected and an exception is raised