Made the validated dict class more general-use, also fixed a couple of hiccups in normalize_color