Bequeathing assets in tax-deferred investments can be tricky. Here are some of the pitfalls and how to avoid them.