Fix Issue 6408 - string[].init gives a wrong type

Allow reinterpreting a slice or index expression as a dynamic array, static array, or associative array
Merge pull request #1495 from yebblies/issue6408

Fix Issue 6408 - string[].init gives a wrong type