Starting work on vector type (they now are added to tree but cause segfault while cleaning).