RPC testing code; fix in RPC JS library to handle arrays