Support serializing asJavaIterable.

Should this maybe be split out as a separate class from the normal collections -- I presume eventually we may want all the collections wrappers?