Remove IDENT_NAME, correct some id_flags behaviour