fix #2: added `aliasIndex` logic in local `expand` function
Merge pull request #3 from nexdrew/circular-host-ref

fix #2: added `aliasIndex` logic in local `expand` function