Fix #10701 & 10838

http://d.puremagic.com/issues/show_bug.cgi?id=10701
http://d.puremagic.com/issues/show_bug.cgi?id=10838

I'm not sure how to add tests to druntime.