VL: add support for functions defined at global/package scopes
GL: fix trace-gl-interp