Fixed broken repeated parameters type inference (we hasn't test for such case, so it's added too).