Fixes #55: Ensure keys are unique when repeating table rows.

This pull request introduces logic described in [this StackOverflow answer](http://stackoverflow.com/a/17246507/339925).