replaced few var with let in system.nim

Nitpicking.