[Truffle] Support polymorphic constant lookup.