Wallet improvements

Some cleanups. Expanding test coverage a bit. Fixed equality testing to ignore `compressed` attribute.