Working @index in mustache templates

Adds a better fix for: #613.  This will be slower to setup, correct, but faster when adding/removing elements.