globalsOf function

Get all global objects of an expression