Fixed bug with error.data. It can be an object after decoding too.
See http://www.jsonrpc.org/specification#error_object
Merge pull request #1 from d-ulyanov/error-data-bugfix

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