fix reading repeated fields from records, better name handling