Ensure multiple attributes_table alternate properly

When there are more than one attributes_table_for being rendered with an
odd number of records, the alternation will be out of sync. Now the
alternation cycle is reset each time.
Merge pull request #2591 from zorab47/fix-attributes-table-for-alternation

Ensure multiple instances of attributes_table_for alternate columns properly