Moe writing branch from 449e92e4a7f035483fb938a689e286da8af749d2

Various change, including some fixes, some migrations of our tests to more recent truth methods.

The final two commits are not MOE generated, but are adding/fixing things that weren't fixed up w.r.t. the open-source build when the changes were made internally.