#89 mock: fixed handling of params by ref