Fix dart2js warnings

@danschultz PTAL