add operator == for function reference type