[TIMOB-15855] (3_2_X) iOS: refactor subview insertion based on zIndex

Cherry Pick PR #5443 into 3_2_X

Test is in [JIRA](https://jira.appcelerator.org/browse/TIMOB-15855)