Gain/Trim should most definitely be calculated when bouncing ("Apply Effects" is essentially a bounce-in-place). Not doing so, as you point out, would wreak havoc on level-sensing plugins. Can you suggest a test scenario that shows this not being the case?
For example, if you insert a compressor and note the maximum peak value in the track, the peak value should be unchanged after applying effects.