Don't allow stubs to mutate method parameters. Fixes #640.