Fixed incorrect calculation of debugscope array size.
Multiple imports fix.
Don't match a file name with a decl name lookup.
Process the "localmain" function first - in order to find local variables that may be used by globals in the module.