solve GetElementPtr on a global array variable

and add GlobalResolve to solve some special situation

Signed-off-by: xiehuc <xiehuc@gmail.com>