optimization of partial applications #5287
Original bug ID: 5287
Partial applications like (f x) where f has arity greater than 3 are expensive, since every application will lead to a closure allocation for each intermediary argument. Moreover, such functions are not inlined anymore.
This patch fixes these two behaviors: