PERM_LIT flag removed from TerrainFlag type and added to CellFlag type.