Add currying for already curried functions.