Exciton and polariton spin beats in a CdMnTe based microcavity