Split the recursive IsDocumentType into an overload for "real" backwards compatibility.

Changed string comparison to use InvariantEquals. (guessing it doesn't _really_ break backw. compat?)
Added XML docs.