Backport a couple regression tests from `cytoolz`.

Also, add a test that ensures `curry` doesn't return a `partial` object if a single argument remains and keyword arguments are present.  This behavior was added in #170.