fdo#75741: Re-implement CompileNameFormula for formula groups.

(cherry picked from commit 355baf573425165cbc1c789a6271eb29940e1f76)
(cherry picked from commit 615f6aa293a6da90da94e6e78828198ffbc0ca5e)

Conflicts:
	sc/inc/document.hxx
	sc/source/core/data/column4.cxx
	sc/source/core/data/document10.cxx
	sc/source/core/data/table7.cxx
	sc/source/ui/docshell/docfunc.cxx
	sc/source/ui/undo/undocell.cxx
	sc/source/ui/unoobj/nameuno.cxx

Change-Id: I57e1e464ac5f7abc10ce5ea5752e036ddb6cf6d7
Reviewed-on: https://gerrit.libreoffice.org/8889
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>