Find declared names in for loops