Support for bidirectional and circular entity references for InMemoryDataContext.