(a) Character Evidence Generally. - Evidence of a person's character or a trait of character is not admissible for the purpose of proving that the person acted in conformity therewith on a particular occasion, except:
(1) Character of Accused. - Evidence of a pertinent trait of character offered by an accused, or by the prosecution to rebut the same;
(2) Character of Victim. - Evidence of a pertinent trait of character of the victim of the crime offered by an accused, or by the prosecution to rebut the same, or evidence of a character trait of peacefulness of the victim offered by the prosecution in a homicide case to rebut evidence that the victim was the first aggressor;
(3) Character of Witness. - Evidence of the character of a witness, a