gaf-export: Correct parsing of distance units.