Tandem Reaction of Allenoate Formation and Cyclization: Divergent Synthesis of Four- to Six-Membered Heterocycles.