structures: automatically translate - and _ in attr dicts