fix multiple parameterized type length calculation
fixed another edge case with call by name params