Fix bug in to_settings_hash

Fix the unintended update of class ```default_settings``` when to_settings_hash is called on an instance.