[TIMOB-18031] iOS: Fix all misc and logic type errors in static analyzer

Remaining misc and logic errors should be removed.
JIRA: https://jira.appcelerator.org/browse/TIMOB-18031