don't create a int indexed array when parent and child have the same name
fixes #618
merge 186fcf88b0eed60baab72e1e0fb252e0a951d222