[tools] fix tuple/list in terrain