Fix use of sequelize.fn etc in date and boolean fields. Closes #1471