[cpp] Add optimized version of Vector.  Add cpp.NativeArray.setSize