Dumping Nim objects as YAML