Better support for reference parameters in stubs.