Optimizes c() and unlist() to avoid copying