Make a compatibility pass.

This commit modifies some of the types of the values to better match the
reference client JSON-RPC API.