Improve the list API for the core library.