Add streaming test, fix serializer chunking.

Added a test to illustrate streaming. The test showed that serializer
chunking stopped working since the generated JavaScript cleanup, so
that's now been fixed.

Closes #59.
Closes #58.
See #55.