Fix warnings from Closure Compiler

These changes fix the warnings presented by Closure Compiler on the
simple optimizations setting.