improved NodeList.Copy() and NodeList.Write()