Use the new gimp-item-{get,set}-expanded() PDB functions to read and write group-layer expanded state in PSDs.