Make clear behaviour of assignments in comprehensions

Related #1684.