Add ability to pass options back to the getTableName function

This pull request restores the functionality originally added in this pull request: https://github.com/sequelize/sequelize/pull/1952