Changed the iteration to use an iterator

The problem is that sometimes List.size() would return
1 more than the actual maximal. So I use an iterator now
and it seems that it's all fine. I don't know what the
actual problem is, but as long as it's working, I'm happy.
Merge branch 'gitsvn-integration-3.7' of github.com:caiusb/CodingSpectator into gitsvn-integration-3.7