Fixed replaceWith(). Works as expected, but tests are failing...

...for the moment.