[Truffle] Make $_ thread local and use it in implicit matches.