Fix a crash when editing lambdas (compound expressions in general)
Fix a bug where computing the regions of a grid layout element crashes