Using the correct type in rewireMethodCall

Closes #12