slicetype: change all costs to int64_t

--HG--
branch : stable