Convert R factors to new-style PooledDataArrays with short refs