Make sure we adopt the child that we are inserting

This depends on #220

Make sure we adopt the child that we are inserting, even in the case where the real dom does not have a parent it is
important to do the adoption for the ownerDocument to stay correct.

Fixes #216