Honor unit of work for add and remove on commit for InMemoryDataContext. (WARNING: Not a minor version bump as this can break tests if tests has add and remove without commits.)