Add optional parameter parsing to GenericCodeElement for parsing delegates