Custom event emitter uses setImmediate over process.nextTick if supported. Closes https://github.com/sequelize/sequelize/issues/869
Forgot to move the tick variable to the top of the file in custom event emitters.
Merge branch 'setimmediate' of https://github.com/durango/sequelize into durango-setimmediate