Issue 11768 - inconsistent behavior of type qualifier inout + const

https://d.puremagic.com/issues/show_bug.cgi?id=11768

To avoid similar bug, refactor other code that parsing combination of type qualifiers.