GH-886: Better error message for static variables with the same name.