start fixing gather/scatter functions (INT_MIN fix)