Fixed several tips and error in global vars calculation function.
Fixed several tips and error in global vars calculation function.

shjalayeri/IDAmetrics,MShudrak/IDAmetrics,nihilus/ida-metrics_static,MShudrak/IDAmetrics,shjalayeri/IDAmetrics,nihilus/ida-metrics_static