Fix ctor args of ContainerPanel.
Store referenceByTarget index in the document.