fixed map[key] and  array[idx] multinomial assignment  assert bug.