some typescript type check fixes
Merge pull request #20 from Roger/master

tslib: some typescript type check fixes