Ordered dictionaries + bug fix for the printing of relations