There is a quirky part of the tax law, called the “kiddie tax,” that can trip up some well-meaning parents who are just trying to get their kids started on good savings habits.