bug(flatten iife): correctly flatten IIFEs of only two levels