Fix for const reference arguments in RPC