Some test results:
it works really perfect in Linear gamma and in 32 bit. It makes field 100% flat and also removes all tiny color casts.
Flat Field layer should be in Linear gamma, so if put Levels inside, set Auto Levels clip to 0% and adjust only white clipping point - final corrected image brightness will remain unchanged (Levels applied in Linear Gamma is same as applied Exposure).
When applied to real photos, you need to add tiny amount of Blur to Flat Field layer to avoid high frequency noise.
In Gamma Corrected space in 32 bit it is possible to notice some tiny uncorrected areas.
In Gamma Corrected space in 16 bit it is possible to notice some visible uncorrected areas.
Compare examples visualized with high resolution Historgam in PhotoLine:



