Fixes Issue 5359 - isDelegate should work for types and expressions.
Merge pull request #1192 from AndrejMitrovic/Fix5359

Issue 5359 - isDelegate should work for types and expressions.