Fix bug where Arel::Table.table_alias persists in some cases.