[BUG #7358] Fixed issue with cloned DOM node by copying the target array. This prevents that the original array is flattened which leads to the wrong result. This only happens if elements of the array contain child nodes.