Wallet: add to/fromJSON for serialization
tests: re-order to same order as prototype
0.0.4