ENH: Fix numerical issues in links and families.

Closes #2024.