Fixing ahead-of-time visibility checking of private properties [ci skip]