Pretty-printing of type variables (Help needed for #8776)