Fix for TypeScript regression of the previous version
As the previous version was a complete implementation of the TypeScript pass, it introduced a few bugs. And those are fixed right away.
Fix for codegen of optional chaining
The issue was about TypeScript type case, but the problem was the ES code generator not checking the
Fix for codegen of unicode surrogates
Personally, this is a type of coding I'm very vulnerable to, but I dit solve it well.