Rewrote planElements access in collectLinks from i%2 syntax to instanceof syntax.
Authored by: vsp_nagel 2009-06-07
Parent: [r7321]
Child: [r7323]