Fix bug of Doctrine MongoDB support: fixing troubles with serializer