Changed instanceof to toString where it was needed
Merge branch 'master' of https://github.com/appcelerator/titanium_mobile_tizen