Fix segfault with long long globals.

A global of the form "long long z = 5LL;" would trigger a null
pointer dereference.
Yeah, most of these patches don't matter as much because of the rewrite, the test cases are useful though. I found these bugs using the gcc test suite, I needed to fix them because they mask other issues.