[Truffle] Refactor ReferenceEqualNode with @CreateCast.