fix issue 10479 - cannot pass implicitly to base class casted result to out contract by ref

http://d.puremagic.com/issues/show_bug.cgi?id=10479