function toArray(children) {
  var result = [];
  mapIntoWithKeyPrefixInternal(children, result, null, emptyFunction.thatReturnsArgument);
  return result;
}
Flatten a children object (typically specified as `props.children`) and
return an array with appropriately re-keyed children.