[ftools] Several fixes
Fix #8107 Mean coordinates
Fix #8105 Basic statistics
Fix #8104 Unique values