Removed TreeZapnest #appendto, copied to code instead + generalized.