improve inlining of varargs functions. helps #4374

this does not fully fix the problem yet, but improves the situation.
the next problem is that for some lengths of argument lists the
function is transformed in such a way as to make it not inlinable
by current rules.