Fix for the latest TypeScript 0.9 build

One API change was in emitter host interface (createFile changed into writeFile, a single object changed to an array).