jsonrpc-s: handle struct_add() to an array node

- wraps each member in an object and adds to array (similar to xmlrpc
  behaviour)