Test XDocument.Changed event. Covers #18772.
Changed XObject OnChanged and OnChanging to use Owner.
When XObject.Owner is not a XElement XObject.Parent returns null and the owner would not be notified of changing and changed events.
Fixes:#18772
Merge pull request #1237 from esdrubal/xdocument

Changed XObject OnChanged and OnChanging to use Owner.