Duplicate value detection

Implemented duplicate value detection. These are warnings only,
as duplicate values within enum definition are valid C/C++