Fix formatting of lists of referenced objects