Fix bug not serializing links with inlined data