Corrected private access checking in visitQualifiedRef