inventory/catalog: use catalog to select, group & order by slot_index
Instead of having complex logic expressed in dtml in the template.
Extend `extra_column_list` argument meaning: it becomes list of columns
that exists because they are in the template SQL.