A divorce, separation, or death of a spouse will affect your tax return. Experts have advice to help you stay on top of it.