Typescript 0.9.5+ support

The generators need a bit more to generate newer typescript documents.  All generic types have to have type arguments.  Read more here: http://twofuckingdevelopers.com/2013/12/new-typescript-version-available-improvements-problems/

Also the generated context file produces a function of 3 arguments but only calls with 2 - another thing typescript complains about