list.lua: rename slice to sub, for compatibility with strings.