Support serializing asJavaIterable.

I guess that's a decision for the project lead(s) ...