Fixes broken StaticContent unit test and improves the view state so that child views are in the correct state before didCreateLayer is called on any of the views after rendering.