mongoid/mongoid — pull request #2921 by arthurnn (2013-03-22 15:23:06+00:00)
Title: Only add _type to IdentityMap if using inherited class

#2697 was forcing _type on all classe when pushing to identityMap. We must use the _type on the selector only when using subclasses.
[Fixes #2916]