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
Issue 9350 - findAdjacent infinite range warning

Fix Issue 9350

http://d.puremagic.com/issues/show_bug.cgi?id=9350
Added unittest for Issue 9350.
Merge pull request #1078 from Poita/bug9350

Issue 9350 - findAdjacent unreachable code warning with infinite ranges