Improve type verification of lists.

Signed-off-by: Etienne M. Gagnon <egagnon@j-meg.com>