Scan issue with marshaling scans with segments
add new types for global indexes