MDict: Fix compatibility between 32/64 bit indices (Fix #340).