Fix treatment of implicit global variables to match specification
(Had been treating them as declarations from their first occurrence onward. Now correctly treating them as declarations at the top of the same file.)
Authored by: Nathan Carter 2014-08-03
Parent: [93e5e1]