Changes the isModified method to support checking the related objects for changes, in the way that doSave can save changes to related objects.