[Truffle] Use a stronger check for class identity.