serialize the length of the list as a compact int, then each list element. You may use either addlist or addList, the lowercase variant is included to be analogous to delist, which is lowercase because de is a prefix