Fix various warnings from json-rpc

Change-Id: I707f6b77b09c61fe2bbfc1a57b892732eb0923aa
Signed-off-by: Rob Adams <readams@readams.net>