Tsclosure

This replaces the default TS module output:
```
var A;
(function (A) {
    (function (B) {
        (function (C) {
            C.Z;
        })(B.C || (B.C = {}));
        var C = B.C;
    })(A.B || (A.B = {}));
    var B = A.B;
})(A || (A = {}));
```
with

```
var A = A || (A = {}), 
      B = A.B || (A.B = {}), 
      C = B.C || (B.C = {});
     C.Z
``