mongo pipeline: fix resource file path
nothing important
refactored validation
add RFPDupeFilter2
fix leaks