Return the levels as part of the main table

This allows for user-specified formatters to use those levels, the same way
that default_formatter() does. Developped jointly with
@koraykv