Mechanistic Investigation, Wavelength-Dependent Reactivity, and Expanded Reactivity of N-Aryl Azacycle Photomediated Ring Contractions.