Return record and key from `next`.

Closes #13.