detect when the passed-in Node is a Document (for xml rendering). If so, just use it; if not, wrap it in a document (like before)
Merge branch 'master' of github.com:jdcasey/galley