parser-decl-var: Don't emit duplicate DECL node when unscoping local vars

(caused duplicate variable declaration problems in the C code under -gen
gcc since 77ce4ca0)
C backend: Rework variable emitting, fix initializers for allocated externs

http://www.freebasic.net/forum/viewtopic.php?f=3&t=22477