Issue 11489 - Improper implicit cast to immutable.

https://d.puremagic.com/issues/show_bug.cgi?id=11489

Nostalgic const conversion bug. We really need to effort to write exhaustive test.