Raise an exception when adding a duplicate impact function name.
Merge pull request #1092 from cchristelis/feature/handle_duplicate_class_names

handle duplicate class names