Fixed delegate operator== to work for lambdas and functions.