Fix to_dict function of Hash objects
Bugfix in File.to_dict