Fix another forgotten class init
Prefer const-refs in foreach loops where appropriate