(RMenu) Some cleanups to RMenu resampler code