Rename referenced types too.