Ignore children with clashing keys

Fixes #566, closes #1201.