feat(typeahead): expose index to custom templates

Closes #699