This solves my problem, but is not a perfect fix since it does not preserve default values that are null.
Ideally I would probably instead revert the changes made in to make it more consistent:
fix issue 35
I think it would be good to add another test that actually tries to call the method on the proxy, without specifying the parameter's value, to see if that works
Added test for issue #35