Cleaner exception handling on casting problems.
Make JSONRPCException cleaner in logging.
Provide proper feedback on what happened if JSON-RPC returns incorrect
value type.