Fix missing spin_polarized in from_dict.