Issue 5359 - isDelegate should work for types and expressions.

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