Yes, 4 GB RAM module works with no problem - first module I found worked.
Look
here. It is article from times when G5 iMacs + Powermacs was oficially unsupporteg, but worked.
In bottom part you will find photo of working module. But I suppose any speed-compatible module should work. The 2.5 GB in specification is probably becouse these time 4 GB modules was not on the market. ( my speculation )
AmigaOS3: Amiga 1200
AmigaOS4: Micro A1-C, AmigaOne XE, Pegasos II, Sam440ep, Sam440ep-flex, AmigaOneX1000
MorphOS: Efika 5200b, Pegasos I, Pegasos II, Powerbook G4, Mac Mini, iMac G5, Powermac G5 Quad