Implement modulo in numba and fix Issues #151 and #143