serpent encodeDataList() and added tests