Trigger a reflow when nodes are appended and removed from the document. ...

...Fixes #907.