[TIMOB-18214] Checks for additional scalar types

Fixes [TIMOB-18214](https://jira.appcelerator.org/browse/TIMOB-18214)