fixed knit_child when knitting chunks with blocks that produce multiple plots
Merge pull request #831 from kforner/knit_child_fix

fixes #824: store all hooks before knitting a child document, and restore them after the child document is finished