Added support for document set references to documents rather than the document itself.