Methyleneketene–imidoylketene–oxoketenimine rearrangements