Fixes #236. Flags for processing text and comment nodes not being correctly propagated to new children.