[Truffle] Improve module parents and constant lookup.