Fix typo in macros
Fix layouting functions.
Assert.
Take into account instantly destroyed views