Separate `dict' & `tree' access.

dict.c / tree.c only accesses dict / tree.
Data exchange is through tree_cur_pos & tree_end_pos.