On the regiochemical differences between Pd-catalyzed heterocyclization-allylation and -arylation reactions of alkynylbenzamides: preparation of 4-allyl-isochromen-1-imines and computational study.