title: Getting TypeError using Angular2 AoT ngc compiler with RC5
body: <p>I'm trying to compile my program using the Ahead of Time ngc compiler.  I haven't used ngc in the past but I've followed several examples on blogs which make it look fairly straight forward.  My code runs fine in the browser and the typescript compiler compiles it fine but I get the following error when I use ngc.</p>
  
  <pre><code>TypeError: Cannot read property 'kind' of undefined
  at maybeGetSimpleFunction (node_modules\@angular\tsc-wrapped\src\collector.js:28:41)
  at node_modules\@angular\tsc-wrapped\src\collector.js:227:41
  at visitEachNode (node_modules\typescript\lib\typescript.js:8154:30)
  at Object.forEachChild (node_modules\typescript\lib\typescript.js:8314:24)
  at MetadataCollector.getMetadata (node_modules\@angular\tsc-wrapped\src\collector.js:189:12)
  at ReflectorHost.getMetadataFor (node_modules\@angular\compiler-cli\src\reflector_host.js:217:43)
  at StaticReflector.getModuleMetadata (node_modules\@angular\compiler-cli\src\static_reflector.js:478:40)
  at CodeGenerator.readFileMetadata (node_modules\@angular\compiler-cli\src\codegen.js:33:51)
  at node_modules\@angular\compiler-cli\src\codegen.js:91:74
  at Array.map (native)
  Compilation failed
  </code></pre>
  
  <p>Any help is appreciated.</p>