Note: I found a fix for the pymatgen issue (#1106436) and I believe reverting uncertainties might be not necessary after all. Thanks.