review cleanups

Review cleanups from https://github.com/dart-lang/spark/pull/769 - @ussuri.