minimal changes to get stream examples running and passing dart_analyzer

Staged at: http://test.dart-lang.appspot.com/articles/creating-streams

Review URL: https://chromiumcodereview.appspot.com/14219003