Fixed delegate detection in expression parsing