VeriFact: Enhancing Long-Form Factuality Evaluation with Refined Fact Extraction and Reference Facts