Update to resolve issue #1434

See full description of the problem here:
http://stackoverflow.com/questions/20541152/requirejs-module-declarations-in-typescript

Issue #1434 

This fix imposes an upper limit of 10 dependencies and mirrors the approach made in C# with Func and Action. This can be extended if necessary until a better solution is available to work around the constraints imposed by the TS compiler.