Generate IDs for headers without them, for #11