Normalize view subtrees by removing falsy values and flattening nested arrays
Fix tests that broke when normalizing children.