Put repeated elements next to their friends instead of at the end of the parent.
Use "is", which is the more correct comparison here.
Minimal changes to make tests pass using lxml.
Adhere to license.
On node.repeat() the items ended up out-of-order.