[corlib] Fix Delegate::DynamicInvoke for open delegates of instance methods and closed delegates of static methods