Add WeakTypeTag and TypeFromTree.