I found a bug in SOD, the data type of one of the lists was set to int16 causing overflow for large datasets. Changing it into int32 fixed the problem fully.
Please merge into master as soon as possible to avoid any confusion to the users because the bug was hidden and not throwing any error.