Bug 847013 - Return info about referenced globals.

Compiler should provide meta information on variables and globals used to
compute the entity.