Palladium Catalysis in Allylic Alkylations and Rearrangements in Pyrimidines.