[TS Parser] Fix TypeScript parser to handle:

- var declarations for interfaces
- complex parameter types