Purge dead code.
Add more tests for list evaluation.

Remove unnecessary null pointer checks. For lists defined as

slist => {}

items being NULL is valid, and yet the list variables should be
known.