list working with indentation, single group detection, full hierarchy support in template