gschem: Move variables closer to where they are used, for clarity