Support method parameter passed by reference

It's not possible to mock a class with an interface that has a method with a parameter passed by reference.  This fixes it.