This should give you a unique A,B,C value on each to object. It's probably not what you really want to do. You probably really want C to be unique and use a single instance of A and B. If that's the case look into OpenLayers.Util.extend for A and B and then simply set to.C = "value".