Intellisense: Add reference path for TypeScript.
Code: Various analysis fixes.
(only 3 warnings left)