RepositoryContainer: added purge() for cleaning identity maps