While more of a theoritical issue currently, this change is a pre-requisite to support properly compo nodes duplication in 'linked copy' case (see !148210). Also add a basic unittest for this case. Pull Request: https://projects.blender.org/blender/blender/pulls/148222