Chemistry of heterocyclic ketene aminals: construction of imidazo(pyrido)[1,2-a]pyridines and imidazo(pyrido)[3,2,1-ij][1,8]naphthyridines via DABCO-catalyzed tandem annulations.