[cpp] Return pseudo-void from IntMap.set Dynamic case.  Closes #3374