Reaction modes and mechanism in indolizine photooxygenation reactions.