When creating a node from a component and a reference the nodes of the component get new IDs. This is done to avoid duplicate IDs when creating a component multiple times. Currently the implementation of Component.createNode in src/component.js only replaces the IDs of direct child nodes (i.e. children that are compound nodes get new IDs but not their child nodes).