Index template aliases

Added support for aliases in index templates.