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

Change-Id: I5021ef61d9238da352e13bdd81a2f3607d0fb4aa
(cherry picked from commit 8f6e3118f57276a458b82482b0d277dee327413e)
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
(cherry picked from commit 2e1b90a4272defb917b23e2e360e171114d6fa4d)
Dump group types from pivot cache for debugging.

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

Change-Id: I291cdd7d055614b9e7074bdc47292ecd41a474ac
(cherry picked from commit bcea38729938300ce574d9f8570dd49869f01890)
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
(cherry picked from commit b3977983e9f662392426f581516d86d7034ad0fd)