A list structure would be handy indeed (like an array?)

I've used two different ways to implement them so far, one is to use a hashtable but name your items in an incrementing order. This is allows you to loop with $hget(table,N) rather than $hget(table,N).item, ..so they're actually sorted.

And the second is to use a binary variable, and separate the items by a null character, seeing as it's the only thing you're never going to find in text.

Both of these are quite slow though and no doubt a lot more sloppy than if it was supported natively.