Allow dumping of internal states of pivot table objects for debugging.

Change-Id: I5021ef61d9238da352e13bdd81a2f3607d0fb4aa
fdo#66969: Set selected page name after building all dimension members.

Because the new implementation relies on the visiblity flag of the
dimension members, they need to exist before setting currently selected
page, which is still used in documents generated by the older version of
LibreOffice.

Change-Id: I6cec5fd3d2165f714fc01b596d3761890d87a4ff
Dump group types from pivot cache for debugging.

Also add some flags to change the dumping behavior a little.

Change-Id: I291cdd7d055614b9e7074bdc47292ecd41a474ac
fdo#66969: Reset group dimension data from all referencing pivot objects.

The previous code was doing it only with the first referencing pivot table,
which would break the rest of them sharing the same cache if
the first one doesn't contain all group dimensions used in all of the
referencing pivot tables.

Change-Id: I35d6907ef8db7ed69db42583cac92b2b74406e2c