Test `nth` with negative index on sequence and iterator.

Negative indexing works on sequences, and raises a ValueError on iterators.

This tests a regression from cytoolz.