Properly get the iterator out of passed iterables.

Fixes #58.