Use === to compare valueDeclaration instead of custom equals function.