function naming(logic, idx) {
  if (logic.name) {
    return logic;
  }
  return {
    ...logic,
    name: `L(${stringifyType(logic.type)})-${idx}`
  };
}
Implement default names for logic using type and idx
@param {object} logic named or unnamed logic object
@param {number} idx  index in the logic array
@return {object} namedLogic named logic