Support matching Schema and Document objects.

Previously the patcher expected strings with the schema or XML
document. This is less efficient when the document object has
already been built.
Merge pull request #1 from omb-awong/support_doc_schema_objs

Support matching Schema and Document objects.