Fix: Crystal 1.0.0 is confused by file private types (#17067)