Fixing optional parameter syntax for typescript.

Type this in typescript mode (http://codemirror.net/mode/javascript/typescript.html) - the indentation gets broken upon hitting Enter.

class Apple {
  call(arg?); <press Enter here>