Fixes sebastianbergmann/phpunit-mock-objects#81.

 * Ensure that mock methods preserve pass-by-reference.
Merge pull request #776 from whatthejeff/phpunit-mock-objects/issue_81