Add scala adapters for doOnEach operator.

This re-integrates support for doOnEach that was lost in the Scala refactor.