Fix Issue 6408 - Phobos fixes

Do not use typeof(Type[0]) to get the element type of an array, use typeof(Type.init[0])
Merge pull request #1077 from yebblies/issue6408

Fix Issue 6408 - Phobos fixes