Fixing 'identifier' being stored as the raw value of the 'id' rather than being wrapped in an object

Continuation of a fix outlined in [pull request 656](https://github.com/sequelize/sequelize/pull/656)