Fix clean_manual_referencing_all to remove long backward deadends
requested to merge kcybulski/PhenoFly_data_processing_tools:fix-clean_manual_referencing into develop
Fix clean_manual_referencing_all
to remove long backward deadends; after this fix, only the shortest backward deadend is kept.