In ResolveTypedefImpl correct off-by-one error in scope handling
In ResolveTypedefImpl correct off-by-one error in scope handling

root-mirror/root,olifre/root,olifre/root,karies/root,karies/root,karies/root,root-mirror/root,olifre/root,root-mirror/root,olifre/root,root-mirror/root,root-mirror/root,karies/root,root-mirror/root,root-mirror/root,karies/root,olifre/root,karies/root,root-mirror/root,karies/root,olifre/root,karies/root,olifre/root,karies/root,karies/root,root-mirror/root,olifre/root,olifre/root,karies/root,root-mirror/root,olifre/root,root-mirror/root,olifre/root