Support for Sequelize 2.0 validation API, should still be backwards compatible.