R: reduce garbage copies in h2o.factor/colswap by not copying the data into result_XX