Fixed bug with error.data. It can be an object after decoding too.

See http://www.jsonrpc.org/specification#error_object