add convenience method to create peeking iterator from an iterable and to create an iterable from any array