Add argument modifiers to generated base proxy when needed. Fixes #13892