Fix foreach over alias - issue #9 on github