bug fix: Element#insert_before now moves an element if the node being inserted exists in the document