Refactor _.partial.
Cache length.
Merge pull request #1422 from braddunbar/partial-refactor

Refactor _.partial.