G4 (4004): Masking issues

green is correct, red is incorrect.

Masks also cause problems with nested components. In the example below, the “dot" is lost (a 2nd level nested component). Attached a test file.

Test.glyphs (13.9 KB)