fix based on test case from jw
Merge pull request #34 from Pomax/jwtc1

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