AtomTable: enforce proper link insertion