Sets the value at the given key (index-list).
void setValue(List<int> key, T value) => data[layout.toIndex(key)] = value;