Bugfix & cleanup in DOMCompiler

When a string was passed in, always include all children of body.

Add test case.