Merged all identity maps into one in the unitofwork. identity map now properly works with hierarchies.