[TIMOB-12037] Ensure size and position flags are cleared on layout

Test is in [JIRA](https://jira.appcelerator.org/browse/TIMOB-12037)