add setByKeyValue method on KeyValueCollections