Copying a container causes errors in the generated code because the copied child objects have the same names.