Output where global variables are declared.

Global variable read/write related warnings now also output the file and line number of where the global variable is declared (in brackets).