Try adding "simplify = FALSE" to your apply function:
mat <- matrix(1:6, ncol=2)
f <- function (x) cbind(1:sum(x), sum(x):1)
do.call(rbind, apply(mat, 1, f))
mat <- f(3)
apply(mat, 1, f, simplify = FALSE)
do.call(rbind, apply(mat, 1, f, simplify = FALSE))