list.lua: make all methods that return lists make them with list.new, not {}.

Also rename result variables consistently to r, not, in some cases, m.