Generalize type of curry to functions of arity 3+.