Issue 1:
Thanks for publishing the nightly builds, that is very convenient.

I'm working to update angular (angular/angular#3400)

Repro:

$ git clone git@github.com:angular/angular.git; cd angular
$ git fetch origin pull/3400/head:ts1.6
$ git checkout ts1.6
$ npm i
$ cd modules/angular2
$ ../../node_modules/.bin/tsc
/Users/alexeagle/Projects/tmp/angular/node_modules/typescript/bin/tsc.js:29059
throw e;
^
TypeError: Cannot read property 'kind' of undefined
at emitSerializedTypeNode (/Users/alexeagle/Projects/tmp/angular/node_modules/typescript/bin/tsc.js:27103:29)
at emitSerializedTypeOfNode (/Users/alexeagle/Projects/tmp/angular/node_modules/typescript/bin/tsc.js:27087:25)
at emitSerializedParameterTypesOfNode (/Users/alexeagle/Projects/tmp/angular/node_modules/typescript/bin/tsc.js:27226:37)
at emitSerializedTypeMetadata (/Users/alexeagle/Projects/tmp/angular/node_modules/typescript/bin/tsc.js:27259:25)
at emitDecoratorsOfConstructor (/Users/alexeagle/Projects/tmp/angular/node_modules/typescript/bin/tsc.js:26943:17)
at emitDecoratorsOfClass (/Users/alexeagle/Projects/tmp/angular/node_modules/typescript/bin/tsc.js:26921:17)
at emitClassLikeDeclarationBelowES6 (/Users/alexeagle/Projects/tmp/angular/node_modules/typescript/bin/tsc.js:26879:17)
at emitClassLikeDeclaration (/Users/alexeagle/Projects/tmp/angular/node_modules/typescript/bin/tsc.js:26751:21)
at emitClassDeclaration (/Users/alexeagle/Projects/tmp/angular/node_modules/typescript/bin/tsc.js:26747:24)
at emitJavaScriptWorker (/Users/alexeagle/Projects/tmp/angular/node_modules/typescript/bin/tsc.js:28675:32)

I can also repro with 1.6.0-dev.20150723 FWIW

Issue 2:
I'm trying to emit metadata for the following class:

@Component()
export class MyClass {

constructor(test: string, test2: string) {

}

@log
doSomething() {

}
}

function log(target: Object, key: string, value: any) {
return {
value: function(...args: any[]) {
var a = args.map(a => JSON.stringify(a)).join();
var result = value.value.apply(this, args);
var r = JSON.stringify(result);
console.log(`Call: ${key}(${a}) => ${r}`);
return result;
}
};
}

function Component(name?: string) {
return (target: any) => {
target.__name__ = name;
}
}

I'm getting the error when compiling; the issue seems related to a missing null-check here.

I looked at this in debug mode, and the "type" member of the outer node object is missing here

The full stack:

TypeError: Cannot read property 'kind' of undefined
at emitSerializedTypeNode (typescriptServices.js:32336:29)
at emitSerializedReturnTypeOfNode (typescriptServices.js:32477:21)
at emitSerializedTypeMetadata (typescriptServices.js:32513:25)
at emitDecoratorsOfMembers (typescriptServices.js:32219:21)
at emitDecoratorsOfClass (typescriptServices.js:32082:17)
at emitClassLikeDeclarationBelowES6 (typescriptServices.js:32042:17)
at emitClassLikeDeclaration (typescriptServices.js:31833:21)
at emitClassDeclaration (typescriptServices.js:31829:24)
at emitJavaScriptWorker (typescriptServices.js:34050:32)
at emitNodeWithoutSourceMap (typescriptServices.js:33860:17)
at emitNodeWithSourceMap (typescriptServices.js:28602:29)
at emitLinesStartingAt (typescriptServices.js:28757:21)
at emitAMDModule (typescriptServices.js:33629:17)
at emitSourceFileNode (typescriptServices.js:33826:25)
at emitJavaScriptWorker (typescriptServices.js:34068:32)
at emitNodeWithoutSourceMap (typescriptServices.js:33860:17)