[TIMOB-18089] (3_5_X) Move from JSType to TiType

Chery Pick PR #6396 into 3_5_X
Tijscore changes [here](https://github.com/appcelerator/tijscore/pull/16)