Modified backprop, so that now it takes the unappended tree with the appended parameter arrays, and properly handles appends/reductions internally.