Removed some redundant code from tsmartptr.h.
Simplified the template implementation of List and Map. (Intel Compiler support)