Add support for streaming pack / unpack to the API.

Some APIs (including SQL) need to pack / unpack fields one at a time.  Add a stream-like API for this.