Fix grouping of nested ternary objects\