Use list* not list match pattern.

Former is faster, for big N.

Also add some unit tests.
Add missing build-deps.

Consequence of adding Scribble documentation in recent commits.