Fix errors introduced by language-typescript 0.0.3 changes