extractor: fix basis.require by namespace reference to module.exports
extractor: fix scope reference resolving that points to some value
extractor: fix crash on warning when template source is not a basis.js resource