smurf: Add further refinements to background removal in pol2cat

Controlled by new parameters REFINE and FORCEFLAT.