Gets the names of groups in a forecast by inspecting its columns.
Wrapper for get_group_cols()
Examples
# character(0)
casteval:::get_group_names(data.frame(time=1))
#> character(0)
# c("variable", "scenario")
casteval:::get_group_names(data.frame(time=1, grp_variable=2, grp_scenario=3))
#> [1] "variable" "scenario"