Differentiable Tree Operations Promote Compositional Generalization