Retirement accounts such as IRAs and 401(k)s can be effective vehicles for tax-deferred savings and growth. Millions of Americans rely on them to fund a major portion of their retirement. But for individuals with large sums in these accounts, they can pose an unexpected long-term problem: They are poor wealth transfer tools when left to someone other than a spouse.