better type inference for closuresif all parameter types are the same for all overloads, type inference of closures will now infer the type and resolve overloading based on return typecloses #923 (commit: d83177b)