script: Make trees less generic
auto merge of #1422 : pcwalton/servo/less-generic-trees, r=metajack

r? @metajack