Referencing a global is assumed to have side effects.

Close #550