Simplify the template implementation of List and Map. (Intel compiler support)