Merge pull request #3239 from 9rnsr/fix12089

[REG2.065a] Issue 12089 - std.utf.validate and inout(char[]) failts to compile
fix Issue 12122 - Template with enumerated constant length array causes error