Fix CompressMatrix conversion of big files (integer overflow)