[Truffle] Clear a few things for compilation.
[Truffle] Make some context-global fields final.
Merge branch master into truffle-head.