Allow partially-filled existing output container in view merging
When merging containers from multiple views, the elements are remapped: links should point to their location in the new container, rather than the old container.
An offset to the position within the container is applied, but this was calculated assuming the new container was empty. This change will now use the current size of the output container to calculate the offset.