YAML file now saving objects as opposed to strings