working fine-grained locking lists! and some enhancements to testing
fixed conflict on list.h
fixed list template