fix(iife-flatten): add iife flattening code to fix failing iife flatten test