fix interpreter globals collision with multiple message templates or modules

Addresses #53.