address dart2js compilation warnings

@gaurave I ran across several dart2js compilation warnings while trying to minimize our compiled output.