fdo#75960: Write unit test for this.

The window failed to launch ultimately due to failure of GetHeaderDim()
call.

Change-Id: I80c99a9ab1f33b4acee5324f417b7a3a26a91a22
fdo#75960: Process pivot tables after named ranges are all set.

Especially for those pivot tables that reference named ranges as their
data sources, it's critical that we process them after named ranges are
set. Else things would start to fail.

Change-Id: I4bf8aa1a844aae3953f2dfbeba0e4d2542a7e53f