Simplify tree_make() a bit with alloca().

For readability. Safe in practice here, and also faster (though it
doesn't matter).