type check for rlp encode 

make rlp.encode check for types + tests