Set a range of values to the accessor for a given type. Not threadsafe for all accessors. If the number of elements asked is greater that the number of keys, it will fail. It is to avoid writing at the same memory place multiple times.