make Parser check that lines with the same ID also have the same type