A Tree Transducer Model of Reference-Set Computation