BUG: lookup global constants correctly in query/eval
Merge pull request #7181 from cpcloud/eval-with-inf

BUG: correctly lookup global constants in query/eval