Added availability for passing iterable objects to create_index/ensure_index methods