Computationally Assisted Mechanistic Investigation into Hypervalent Iodine Catalysis: Cyclization of N-Allylbenzamide.