Fixes sebastianbergmann/phpunit-mock-objects#81.

* Ensure that mock methods preserve pass-by-reference.