Ticket #41: partially unroll read_varint()

PyPy 2.4.0, before:
    1000 loops, best of 3: 3 msec per loop

After:
    1000 loops, best of 3: 2.02 msec per loop