implement bencode for val BList