[gc_core][gc_lang] change typeof(exports) before the require block