Issue 12777 - const/immutable member function violating its const-ness - confusing error message

https://issues.dlang.org/show_bug.cgi?id=12777

Improve consistency of diagnostic messages `cannot modify ...`.

And, reduce test files in fail_compilation directory to speed up testing.