re Wrap Type
@NotNull
Reconstructs the type chain when the root node is modified e.g. when swapping with alias (typedef)
Return
oldchain but root replaced with newRoot
Parameters
old Chain
containing all types until the root
new Root
root the chain is swapped with