Deserialize: fix unsigned bitwise math

This StackExchange answer fixed a major bug in wally's header database (the block chain work calculation).
http://stackoverflow.com/questions/6798111/bitwise-operations-on-32-bit-unsigned-ints