Merge "Add root types and thread id to root visiting."