Fixed duplicate assembler output bug, now compiles to code that makes sense.
Replaced address imm's by tglobaladdress, and now global variable load and stores work.