Add List_check() macro to validate a List
Add compare functions for lists and listnodes