Add support for Iterable for non-primitive element types