fix Issue 10398 - Dmd bugs detected by memcheck when compile druntime+phobos