Palladium-Catalyzed Indole and Benzofuran Ring Formation Accompanying Carbonylation.