Fix and optimize `_.partial` and `_.partialRight` in builds.