[TIMOB-13237] (3_1_X) Wait for layout to finish before animting

Backport of PR #4250

Test is in [JIRA](https://jira.appcelerator.org/browse/TIMOB-13237)

Also test against KS->Animations. Note to tester

Basic animation will not work always but that is a bug in KS and not related to this PR