support encoding of rlp
See todo for obvious misses