Fix messages where reporting a parametric entity would print internal variable names