Use file-level scope for untyped constant checking.

Fixes #61.