fixed json representation of arrays of links with same rel

Should fix #1