[tree-nodes] Fix backreferences handling (fix #3)