Support name declaration and resolution for list comprehensions