Fixed the obj/dict_to_repr methods