Fix Kpoints to from dict properly. Seriously, whoever added all those additional
stuff without unittest and making sure that to and from dict are properly
supported should be forced into a labor camp.