Fix ReferencesTest failure with Doctrine Common 2.4.2

As of [build 1236](https://travis-ci.org/doctrine/mongodb-odm/builds/26415417), the test suite was failing due to doctrine/common#298, which was included in Doctrine Common [v2.4.2](https://github.com/doctrine/common/releases/tag/v2.4.2).