Implemented matchesByPointer for validation results.