Fixed bug in object instantiation in object_from_dict (there was a typo in the method name)