move to RawLayoutNodeHelpers.type_id_for_layout