Closes sequelize/sequelize#662