Fix routine `bufferReusingGrow`, improve copying of elements in the same buffer
Fix routine `bufferReusingGrow`, improve copying of elements in the same buffer

Wandalen/wTools,Wandalen/wTools,volodymyrmigdal/wTools