Fix for PR1022 (folding loads of static initializers) by Dan Gohman.