Issue 9749 - typeof(return) should work in nested functions.

http://d.puremagic.com/issues/show_bug.cgi?id=9749

This is an experimental pull.