Cleanup vasprun.to_dict method considerably for readability.