Ignore children with clashing keys

Fixes #566.
Merge pull request #1364 from spicyj/key-collisions-2

Ignore children with clashing keys