Differentiate between ID types

The BSON type of an ID is important in MongoDB, so ODM should not change strings to integers.

The problem was originally reported in [this Stack Overflow comment](http://stackoverflow.com/questions/11125389/doctrine-odm-mongodb-not-retrying-queries/13259538#comment18106292_13259538).