Added code to generator example (and fixed an accompanying bug) to allow a generator block
to provide output to downstream blocks.