freerds-rpc: improve RPC serialization flexibility