add error checking to RBG contructor for duplicate values, see #124