fixes based on test case reported in https://github.com/Pomax/DOM-diff/issues/33