a few cleanups and fixes to rlp decoding