[Refactoring] checkPurity, checkSafety, and checkNogc
[Refactoring] Add FuncDeclaration::isPureBypassingInferenceX()
fix Issue 6359 - Pure/@safe-inference should not be affected by __traits(compiles)