Detect ref-list by matching for year or "n.d." in /all/ publications
Add "n.d." detection
Refactor out year detection method into separate function
Fix regex and add removal method
Write changes to both temporary and final file paths to avoid metadata merge undoing this
Fixes to ref list handling for compatibility with rest R01
Fixes to ref list handling for compatibility with test R01