perf($compile): only use document fragments and copy data when necessary
perf($compile): improving single-node case of replaceWith