Merge pull request #3231 from yebblies/issue12095

Issue 12095 - Wrong code with -O -inline
Merge pull request #3239 from 9rnsr/fix12089

[REG2.065a] Issue 12089 - std.utf.validate and inout(char[]) failts to compile
Merge pull request #3244 from 9rnsr/2.065

Puck up changes from master to 2.065 branch